﻿#pragma once

#include "net/net_client.h"

#define HEARTBEAT_INTERVAL 15

namespace KBEngineClient
{

class GameNetClient : public NetClient
{
public:
    GameNetClient();
    //void handlMessage(Message& message);
    void noticeSocketDisconnect(int len, int sockErr);
    void tick(float dt);

private:
    void handleHeartBeat(float dt);
    void reConnectBtnCallback(void *result, void *bindData);  //重新连接服务器

private:
    float heartBeatTime;
};

}
